<h2>登录</h2>

<%= simple_form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %>
  <div class="form-inputs">
    <%= f.input :user_name, label: '用户名', required: false, autofocus: true %>
    <%= f.input :password, label: '密码', required: false %>
  </div>

  <div class="form-actions col-sm-offset-3 col-sm-1">
    <%= f.button :submit, "登录", class: 'btn btn-primary' %>
  </div>
<% end %>
